package com.sofwin.controller.contents;

import com.sofwin.dto.HorizontalDto;
import com.sofwin.service.contents.HorizontalCompetitionService;
import com.sofwin.service.impl.contents.HorizontalCompetitionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: ssm-parent
 * @description: 同行竞争与关联交易
 * @author: Mr.jhx
 * @create: 2021-04-27 10:38
 * @Version 1.0
 **/
@Controller
@RequestMapping("horizontal/Competition")
public class HorizontalCompetitionController {
    @Autowired
    private HorizontalCompetitionService horizontalCompetitionService;
    @RequestMapping("datas")
    public String data(Integer companyId, Model model){
        HorizontalDto horizontalDto = horizontalCompetitionService.selecthorizontalByBusinessId(companyId);
       model.addAttribute("horizontal",horizontalDto);
        return "c_information/contents/horizontalCompetition";
    }
}
